<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common/base_body_header.jsp" %>

<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <div class="widget-box">
                <div class="widget-header">
                    <h4><button type="button" class="btn btn-sm btn-info"
                                    onclick="myCourse()">
                        我的课程
                    </button></h4>
                </div>

                <input id="phone" type="hidden" value="${phone}">
                <input id="exp" type="hidden" value="${exp}">
                <input id="courseId" type="hidden" value="${courseId}">

                <div class="widget-body">
                    <div class="widget-main no-padding center">
                        <form:form class="form-horizontal" modelAttribute="sysUser"
                                   action="${GLOBAL.basePath}/sysuser/save" method="post" id="sysUserForm">

                            <%--<c:choose>--%>
                                <%--<c:when test="${not empty course}">--%>
                                    <%--<fieldset>--%>
                                        <%--<video src="${course.videoUrl}" width="95%"--%>
                                               <%--controls="controls"/>--%>
                                    <%--</fieldset>--%>
                                <%--</c:when>--%>

                                <%--<c:otherwise>--%>
                            <div class="form-actions">
                                <span>老师的微信(下)</span>
                            </div>
                                    <fieldset>
                                        <img src="${GLOBAL.basePath}/images/Emily.jpeg"
                                             width="95%">
                                    </fieldset>

                                    <%--<div class="form-actions">--%>
                                        <%--<button type="button" class="btn btn-sm btn-success" style="width: 90%"--%>
                                                <%--onclick="receive_btn()">--%>
                                            <%--课程0元购买--%>
                                        <%--</button>--%>
                                    <%--</div>--%>
                                <%--</c:otherwise>--%>
                            <%--</c:choose>--%>
                            <div class="form-actions">
                                <span>付款码(下)</span>
                            </div>

                            <fieldset>
                                <img src="${GLOBAL.basePath}/images/100.png"
                                     width="95%">
                            </fieldset>

                            <div class="form-actions">
                                    <span>如果已经支付完成,请联系Emily老师开通课程</span>
                            </div>
                        </form:form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="mask" class="img"></div>
</div>
<%@include file="../common/page_content_suf.jsp" %>
<%@include file="../common/script1.jsp" %>

<script>
    function showMask() {
        $("body").mLoading();
        $("#campusdsr").submit();
    }

    function receive_btn() {
        var phone = $("#phone").val();
        var exp = $("#exp").val();

        document.location.href = "${GLOBAL.basePath}/Emily/receive?phone="+phone+"&exp="+exp;
    };

    function buy_btn() {
        var courseId = $("#courseId").val();
        var exp = $("#exp").val();
        var phone = $("#phone").val();

        document.location.href = "${GLOBAL.basePath}/Emily/receiveBuy?courseId="+courseId+"&exp="+exp+"&phone="+phone;
    }


    function myCourse() {
        var phone = $("#phone").val();
        var exp = $("#exp").val();

        document.location.href = "${GLOBAL.basePath}/Emily/myCourse?phone="+phone+"&exp="+exp;
    };
</script>